Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > 日本語 - Japanese > XPages Extension Library Mobile Controls - 「Mobile Switch」
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

ビデオで見る XPages Social Enabler

ノーツコンソーシアム 2012 年度ノーツソーシャルアプリ開発技術研究会 外部 SNS 連携調査結果報告の一部です。 OAuth Token Store とサンプルデータベースの設定および使用方法。 Dropbox と Twitter 連携についての詳細

ビデオで見る XPages Extension Library のインストール方法

ノーツコンソーシアム 2012 年度ノーツソーシャルアプリ開発技術研究会 外部 SNS 連携調査結果報告の一部です。

XPages Extension Library Mobile Controls - 「Tab Bar Button」

この記事では、XPages Extension Library Mobile Controls から Tab Bar Button コントロールを解説します。

XPages Extension Library Mobile Controls - 「Tab Bar」

この記事では、XPages Extension Library Mobile Controls から Tab Bar コントロールを解説します。

XPages Extension Library Mobile Controls - 「Mobile Switch」

この記事では、XPages Extension Library Mobile Controls から Mobile Switch コントロールを解説します。
Community articleXPages Extension Library Mobile Controls - 「Mobile Switch」
Added by ~Judy Desluader on October 9, 2012 | Version 1
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
この記事では、XPages Extension Library Mobile Controls から Mobile Switch コントロールを解説します。
Tags: Extension Library, Extension Library controls, XPages Extension Library Japan Project
ShowTable of Contents
HideTable of Contents
  • 1 Mobile Switch コントロールの概説
  • 2 生成されるタグ
  • 3 Mobile Switch のプロパティ

Mobile Switch コントロールの概説

このコントロールはチェックの有無やオン/オフを切り替えるスイッチとして使用するコントロールでです。

生成されるタグ

このコントロールのタグは xe:djxmSwitch です。

<xe:djxmSwitch leftLabel="ON" rightLabel="OFF" id="djxmSwitch1">

	            </xe:djxmSwitch>

	

Mobile Switch のプロパティ

カテゴリ プロパティ 説明
イベント onStateChanged スイッチによって内容が変わった際のイベント
  onTouchEnd ユーザーがスイッチを押し、その指を離した際のイベント
  onTouchMobe ユーザーがスイッチを押し、その指を移動させている際のイベント
  onTouchStart ユーザーがスイッチに指を触れたときのイベント
基本 leftLabel

スイッチの左側のラベルテキスト

  rightLabel スイッチの右側のラベルテキスト
  value スイッチの初期値。デフォルトはON

このスイッチコントロールの設定内容の変更には onStateChanged イベントで以下のようなスコープ変数(ここでは viewScope)とJavaScript を使用して次のページなどに値を渡すことが多い。

	<xe:djxmSwitch leftLabel="ON" rightLabel="OFF"

	                id="djxmSwitch1">

	                <xe:this.onStateChanged><![CDATA[#{javascript:var v = viewScope.config1;

	if (v!=="off") {

	viewScope.put("config1","off");

	} else{

	viewScope.put("config1", "on");

	}

	}]]></xe:this.onStateChanged>

	            </xe:djxmSwitch>

	


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (1)Oct 9, 2012, 5:22:42 AM~Judy Desluader  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility